import { Token } from "../../../context";
import { RedPacketType } from "../../../utils/useSetting";
import { Pages } from "../Pages";

export const currentPage: Token<Pages> = `currentPage`;
export interface IRedPacket {
    type: RedPacketType;
    desc: string;
    join: Function;
    condiction: string;
    progress?: string;
    grabs: any[];
}

export const redsList: Token<IRedPacket[]> = `redsList`;
export const moneys: Token<number[]> = `moneys`;

export interface IRewardResult {
    luckyUserList: any[];
    result: string;
    type: RedPacketType;
    desc: string;
}
export const rewardResult: Token<IRewardResult> = `rewardResult`;

export interface IRewarding {
    username: string;
    result: string;
    type: RedPacketType;
    desc: string;
}
export const rewarding: Token<IRewarding> = `rewarding`;
